-
Couldn't load subscription status.
- Fork 2.5k
Update spendable balance and ED spec #6869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
thanks @gui1117 ! good catch |
|
don't merge as-is it was more a comment that a direct PR, I tried to improve the PR a bit, I am still not sure what is the exact spec, so I don't know what to write down. Sometimes the account is dusted sometimes it is not. I couldn't find any consistency. |
|
Hey @gui1117, thank you for this PR, any update on its status? |
|
When there is another provider, sometimes the amount below ED gets dusted sometimes not depending on the operation. A transfer will usually dust the account, reserve will not, I couldn't find any consistency, even the internal doc are contradictory so I reported this internally. |
I think the doc is wrong in regards to the spendable amount: the formula is wrong in some situations.
Also it says that reserved balances add a provider but the reality in the code is different:
I have to look deeper to double check, but this is probably more correct than before.